Incorrect argument type to variable 'old_passwords'