Fixed non redirect to login bug