add json validators for secrets and users

also minor restructuring in json validator class
make use of secret json validator