validation on rating