Wrap this and previous section in one if to check if user is logged in; then check in inside if to see if the user is the same user or a different user.