Refactoring, base updated and implemented Login Service, fixes #3