Switch user password type based on generate password click

Fixes #31