Invalid data error when trying to like a post