Solved redirect infinite cycle on unauthrized access