Added password hashing to login attempt