auth and create config file