Check if profile exists when submitting

Using cURL.