added form functionality and validation

Both server-side and client-side validation for contact form