Fixed bug with redirect to login

Changed login check event from $routeChangeStart to $locationChangeStart
to prevent the HomeController from running sometimes before redirecting
to the login page