checkLogin cache, also, OVER 8000 LINES OF CODE! O.O