Made the "Settings" input fields more robust.
Catches exceptions for invalid user input.