adding a check to see if the guest tries to send a message outside of the server