Improve .register function

Allow the register function to add a username and password to an already
existing user. This is useful if used in combination with other strategies
like oauth.