1. authHelper fixes
2. Added roleToNumber fn
3. Fix to model error handler for duplicate keys