Writing register records from a form