Bug fix: Not retrieving correct salt for username with deleted accounts

When there are multiple usernames in the x_accounts table, the 1st entry is always selected with the current query. Query has been adjusted to select the record that has not been deleted by adding " AND ac_deleted_ts IS NULL" to the query.