added validations to users