client/server validation api