Update Activity.php

Added logic for overriding auto setting user id.