Updated Login Dialog and Shared Prefernces