validate ranking from 0 to 10