fetch logged in user in the beginning