Now accepts username/password via terminal instead of params.
Updated the regex to handle username and password at the same time.