Added validation on client`s side
Added validation on server side and implemented sending mails via php