JC: Added wf_event to model to fix validate in wf. Added @erb_code to create/update. Add spec for failed wf validate. spec passes.