Hide the password tab if the used didn’t sign in with local authentication
Using an id rather than first-child to display the correct preferences tab

Also updated the preference test to assert that the preferences panel is
always displayed when openening the modal
Merge remote-tracking branch 'simong/hide-password-tab'
Minor clean-up