date picker with some basic validation