Login auth class refactored to store the username as the value.

Refactored package names.