added post method to send chat message