Allowing a record to be saved; fixing a few bugs