better checking on inputs to expiration