added basic rank determination for users