Add MP to validate input length