Added input checking in setup menu