Fixed required login bug