made loginname case insensitive