Change feedback on failed authentication

Fixed reference error and missing feedback message on failed login.

Fix #740