added check for password to complete authentication