Add username loading, fix some errors, more strict geometry checking