validate appointment not in the past