added globals for username and password