User registration fix

Signed-off-by: Dileep Mishra <mishradileep@gmail.com>