Added callback functionality to the LoginDialog