add a set_credentials method on the session class fixes #13