Fixing loginusername error

see #228