login and refresh problems fixed
basic api