Allowing changing the type within an input field, mainly for passwords