Fix issue in identity manager while creating new user

Code Reviewer: Santosh Singh<santosh@incaendo.com>