Inputs are necessary for user interactions. Inputs are used to take information from user. Input elements are widely used with forms to collect user information.
Inputs can be of many types below we can see simple input & input box. The second element shown below is error input box which is simple input box that changes color to red when input entered by user inside it didn't gets validated.
Use the code from above according to which input do you want. For error style input after validating input if you want to show errored input you can use 'error-input' class.