modif server side form validation for registration