save baseurl and email in userdefaults