dialog login in external file