LPS-36032 validation for comments and ratings

Rebased, fixed conflicts.

Thanks,

Máté