Lab9: Adding authorization