check for valid month