added some validations to uesrs model