making date field as readonly