Added: More login logic.