Validate register.php