Added user_id check on message creation