Added support for username and password.