added error status for inputs