validly elected president