log in with password check