Made static authentication.
Refactoring login case.