Add authentication to application