linux Uinsg write command to communicate with other users : I am learning linux

and I am learning how to communicate with other users

in addition, I am using ubuntu

and I already have a existing user
and when I try to use the command write to communicate with other user

    write lex pts/5

a error pop out,

    write: you are uid 1000, but your login is as uid 1001

I thought the shell will allow communication in different uid, so it cannot?

is there any ways to fix this?

Thank

