Fixing bug where preferences controller wasn't saving username and password to credential storage.