to check whether the year is leap year or not