use self-made authentication dialog box