Add LoginPassword module and small refactoring