Fixed if the password is correct
Fixed getting the session secret