refactoring of some classes, added basic admin functionality and altered the login package