fixed 'from' date validation