expanding User.from_credentials documentation