fixed merchant Login bug

Fixed a crash when creating a merchant array from the array list.