Fixed the validation for the connection manager.

Fixed validation on the connection manager to allow for an empty
username but it a username is supplied, a password must be supplied as
well.