input validation for user sign up (php & js)