Removed main2, main now checks session for login