Added compareTo method for comparing different dates
Added date validation
Added date validation