Validate credentials on connection