Refactoring routes. Hooking up login