validations and styling of ratings