loginViewController now logs in from viewDidAppear