implemented GET for messages/:userid