adding authentication to the app.