Changing frontend and backend code to correctly handle message author