Add login activity, refactored utils to match.