how to check case sensitive username
Username fields are generally case insensitive.
how to check case sensitive password
Password fields are generally case-sensitive. What is the issue here?
In either case, if you need to go other way from general, while comparing you need to take care. If you want case-insensitive passwords then convert it into toUpper or toLower and store it/compare it. Same with username.