Removed 'has_failed_password_msg()' functoin