refactors active state classes and functions
fix login button