handling multiple passwords