This function can be used immediately by logging in or registering for an account