added console.log in auth