Restricted access page is working and redirecting user back to home page to login