Added username/password logging functionality