Added login dialog, fixed username caching, fixed some of the redis calls in the server