restrict week number to valid values