Add method for authentication