Add deletePassword function. Some minor changes