Adds authentication to before block