Fix messages route and improves verifications.