added confirm registration through rest