update messages controller to add user