fix input validation for app expiration period

fixes https://github.com/opentechinstitute/luci-commotion/issues/417