perform validate in save