Added the authentication code