Updated the username and password parameters to use constants if not provided to the constructor.