fix bug validate date