Check months validity.