login process refactoring (first steps), project structure improvement