Moved logic to identify admin into auth.js