-cache server and user name in localStorage