added check for support of input type date