bugfix: dates validation