Modiffied log out for active