add date check 

add date check for user typing in input field