implement username dialog