added username/password cashing