Add inputs validation.