validate before animation