Login view fix, Controlling connection on startup