These lines both do the same thing:
self.view.window.rootViewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self.view.window.rootViewController setModalTransitionStyle:UIModalTransitionStyleCoverVertical];
so you only need to use 1 of them.
But also, you should be setting the transition style on the view controller which is actually transitioning, not on the root view controller (which is only managing the transition process).
i.e. set the transition style on the login and register view controllers before dismissing them.