Adding isset($error)