Add authentication with view and main activity