validate create & edit account