registration using dialogue box