Fixed logic for custom contact form check.