added validations to user