Added dialog for login and register returns.