prevent save on invalid fields, highlight invalid fields