fix login and enable error message to be sent to login-error-message class/id