It worked so $error is not getting called somewere