refactoring: adding login to lib