Added handler for failed login attempt.

Added handler for failed login attempt. Added new security restrictions