Added check to make sure the period provided is supported

This is a simple check that will make sure users don't provide unsupported period values