Fix datetime picker validation