added in some error catching and passing messages for blank fields.