Added redirects if user is not logged in