updating register form