add validation to favorite