Added authorize function
Authorize alert