date entry and validation