Code cleaning for login
Refactoring user module