Updated app to access protected resource