fixed the password authentication