Finished the inputs and validation.