fixed failing register_bad_credentials tests