change input type along to its type