refactored LoginRoute