fixing login name storage bug