Recover password from keychain
Refactor code