Implemented audit logging for portal.