Improve auth and add check for rank and admin
Prevent duplicate inviteCode
Minor layout fix to admin user edit page