made username and email authentication case insensitive