Refactored 'is_instructor' into 'is_instructor' and 'get_user', added a section specifically for log_messages in common.js