Improved input validation. Added invalid sign in attempts functionality.
Added reset password functionality.