I’m creating a user registration form. I designed the UI interface through story board and have the sign up button action presenting the tab bar segue. I want to prevent the sign up from presenting the segue if the form validation have errors or if there was an error during registration. For some reason its not working. Any work around this???

Try something like: