Fixed NullPointerException with LoginManager