add validation on register.php