refactored the login so connect is simpler.
Merge branch 'master' of https://github.com/dreck410/AppDev2.git