Added method to check the role of the poster
small change to the schema
Added a method to get role from secret
Added constants