added login
added a mechanism for transitioning into a custom route after login