adds contact form functionality with simple validation