Added login method.
Attempt login before configuring.
Fixes this object instance outside of object.