added validate logic to action model