Added authentication
Authentication code change