cleaned up code for contact form