default case to false for isValid