Fixed a date issue with the membership expiry date check