fixed empty  data when no login data provided