Added length, size and session check in mtproto messages