completed input form with error checking