Added redirection if logged out