CHANGED:applied the segue function between UINavigationController and LoginViewController