Added back-end logic for client messages and fixed contact form validation