refactoring login
name of function
Refactor wrong password