Added date editing and check to make sure date is not blank