Check if profile exists when submiting