Fixed the registration functionality

Signed-off-by: Anurag <anurag.pattnaik@andolasoft.com>