login and fetch data for users