Since userid and password are read as index 0 and 1 of credentials.split(':') the remaining part of the password after ':' is discarded.