Made optional argument to updatePasswordVisiblity which determines default