Modified secure.py - added 'check_for_failed_password()' and 'has_failed_password_msg()' functions