added js validation in signup page

added js validation for email and phonenumber