Adding authentication control