Added client side validation in php as well as in Jquery.
Added mail functionality.