add validation on form field on register.php