changed authManger login function