add method to change login status in one place
separate server related logic to ServiceHelper