Both approaches are easy. Here is the code for Duncan's suggestion.
if (passwordTextfield.text > spaces) //or whatever condition you would like to put
UIStoryboard *storyboard = self.storyboard;
//You need to set below identifier (PasswordView) through your storyboard.
PasswordViewController *passwordViewController =
[self.navigationController pushViewController:passwordViewController animated:YES];