system will exit if errors with inputs
changed so program will abort if input text error