Fixed call to isLeapYear() method and changed error message