small changes to the form and to result code.  Untested class object to send to database