updated with logout