fix rest save error validation