Added authentication validation.