Switch password input so is g:passwordField not g:textField to hide password