Fixed redirect for not authenticated users