some error handling for malformed registration requests