move baseURL from Main to Config, use it in LoginRest too