Adding authentication to the app