made changes to read logged in user