Added authentication validation