fix date picker validation bug