Changed validation check for range values to OR so upper and lower limits are valid inputs