git login activity refactored