fix infinite redirection loop or anonym users