Properly save course_id and ip_address in add()