adding validation script on the javascript layer. Including length checking and email validation