Prevents the next button from proceeding to the next question if the user has not provided a valid input, such as not selecting a star-rating.