Added server side authentication based on user roles.