Added cloud code for save user and save location