added route validation with defaults object, created new error for debugging