add afterLogin callback to load data after login