Added page redirect when not logged in