adds chat getting and posting with current user from localstorage