title: xcode redirecting to a viewcontroller with uinavigation from login
body: <p>Finally made my api login to work but I just bumped into a huge road block with redirecting to the main page after login. My storyboard looks like this</p>
  
  <p><img src="https://i.stack.imgur.com/sqyV4.png" alt="current storyboard"></p>
  
  <p>So I have all my processes on that submit button and after the validations pass I want to redirect to the Events page but it would always cache and would give me this exception:</p>
  
  <blockquote>
    <p>Terminating app due to uncaught exception 'NSGenericException',
    reason: 'Could not find a navigation controller for segue
    'LoginSuccess'. Push segues can only be used when the source
    controller is managed by an instance of UINavigationController.'</p>
  </blockquote>
  
  <p>This is the line that pushes to the next page</p>
  
  <pre><code>if(user.isValid){
          // go to next page
          [self performSegueWithIdentifier:@"LoginSuccess" sender:self];
      }
      else{
              // else refresh current page
      }
  </code></pre>
  
  <p>Thanks guys!</p>