implemented basic logic to add an account