it can get the type by the username