When adding a new case, the check for leap years now performs properly.