Rewrote login logic (still buggy). Avatar on Home page avatar now respects pref key.