added some code to store and retrieve credentials from gconf