added save function of input text fields in registration form