add register user module. optimize the form field validator.