small fix to make the save button work properly with validation