title: How to Add Segue When Clicking a Button go to Another Controller: Validation Logic
body: <p>Imagine that I have a viewcontrol class (and it has login information) and what I want to do is: after the user clicks the login button, I want to check it with my validation method and then I want to go to the <code>UITabBarController</code> in the storyboard.</p>
  
  <p>Can anyone help me add the segue for <code>UITabBarController</code>? If I add a push segue on the login button, it will go to <code>UITabBarController</code> directly irrespective of the validation status.</p>