Checking the Passwords for Login