add identity check in get_psk_info