switching to user when logged in