Added routing to login page when users have not been logged in.