Fixed up AppDelegate for login controllers