Update SettingsScreen.java

Improved error checking