Close login/regis. dialog after success. login/reg