error handling for invalid expirations