Adding authentication