a block will be called once authentication view pop up