Changed so page does not go to redirect if you are not logged in.