Fixed login issue.

Was getting a NullPointer when entering invalid information.