Lowercase usernames

Added toLower function as case sensitive usernames are not a thing