Fixed bug with saving details

Previously, blank details would be saved when there was a blank
text field.