Handle IntegrityError for duplicate profile