Remove login.failed state and function.

Use variable instead.