Add method for authenticating the request