Addition of a input checking function
Addition of checkSettings function