on loadData, checks if user is logged in.  if not, makes them log in