Created the function for the authenticator dialog