added return with error message in PasswordChecker