Username and password are optional