AK Party nominates Erdogan for 2nd term as president