date picker validation and restricting user from editing the input field

disable future dates for datepicker wherever necessary
Made datepicker input field non-editable for users.