added validation test and model validations to users