Fix the redirection of the public user to login screen.