Added some login connection code to the storage object