Adding authentication features