How do I code a switch to hide/show password?