user is created but error in setting certain fields