add register and ask passwd dialog