Fix username case sensitive lookup

Added a method to pick out the index of a username from userlist case insensitively