$success will be undefined in this case