fix(auth): Improve code for theme changing