Make usernames case-insensitive. Fix template path