wrote js to validate phone number, birthdate, etc