fix login 401 issue
new user automatically logged in if successful creation