Untested full login functionality added, not n tier architected.