contact form validates and writes to emails.txt