added validations to users model