Added redirects if user not logged in or is logged in