Added error check for Invalid Links