login and fetch implemented