Changing field input type