login method improvements
fixed unclean login route
refactoring