move data loading to login page