use more attributes for passwords

Added some fixes to use more attributes (and use the right ones) for
password storage. Also changed the way attributes are accessed to use
single-quotes instead of symbols.