Checking hash on message submission