added confirmation to register