api: adding pre-msg on error while creating user