Bug fix for login user name check