Refactor into a login util. Wording cleanup.