error in message controller