actually fixed permissions issue
refactored is_admin"