Add an input type
Revamp the error management