Added username and password as a preference