Added dates validation