Made LoginManager more flexible with additional overridable methods