Added optional username and passwords