the today date field is not working properly