when user logs in from a page other than the root route, user is redirected to the page they were last on