adds validations to user and recommendation models