move invitation check in _process_signup before redirect to social signup