cleaned up all of login and setupVisit, added Visit class