Login page, added listener to $routeChangeStart when the page is changing check if the user is logged in and authenticated.